Skip to content

fix: BED-10671 add stable IDs to saved searches and Tier Zero rules - #114

Merged
jaredcatkinson merged 1 commit into
mainfrom
fix/BED-10671-stable-extension-ids
Nov 20, 2026
Merged

jaredcatkinson merged 1 commit into
mainfrom
fix/BED-10671-stable-extension-ids

Conversation

@jaredcatkinson

@jaredcatkinson jaredcatkinson commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Generate BHE Bundle fails when GitHub saved searches lack query_key and Tier Zero rules lack key, blocking Enterprise bundle updates. Add unique, stable GH_ identifiers to all 62 saved searches and 12 Tier Zero rules, preserving the existing assigned search ID and all query and rule content.

Validation: parsed all 74 JSON files, checked ID presence and uniqueness, compared non-ID content against the base revision, and passed git diff --check. End-to-end Generate BHE Bundle and ZIP validation will be performed separately by the maintainer.

Summary by CodeRabbit

  • Improvements
    • Added consistent identifiers to saved searches and privilege-rule entries across repository access, security, identity, and workflow topics.
    • These entries can now be distinguished and referenced consistently in the catalog.

@coderabbitai

coderabbitai Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The pull request adds or updates GH_ keys in Tier Zero privilege zone rules and saved-search configurations. It changes configuration identifiers without changing the accompanying saved-search queries, names, or descriptions where noted.

Changes

Configuration identifiers

Layer / File(s) Summary
Tier Zero rule keys
extension/privilege_zone_rules/*.json
Adds or updates key values for 12 Tier Zero privilege zone rules.
Saved-search query keys
extension/saved_searches/*.json
Adds query_key values to 62 saved searches.

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Bug fix

Possibly related PRs

Suggested reviewers: jonasbk

Merge Risk: Minimal · up to d3973

This PR adds stable GH_ identifiers to saved searches and Tier Zero rules so bundle generation no longer fails on missing keys. No concrete problem was found. Running Generate BHE Bundle once after merge, or before it, would confirm the fix end to end.

Architecture risk: Low · up to d3973

The change affects 1 system.

Changed systems: extension

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — extension (service) was modified; 74 changed files map to changed impact.

Before / after behavior

  • observed — Modified behavior in extension/privilege_zone_rules/t0-all-repo-admin-role.json: The rule’s key was changed to GH_t0_all_repo_admin_role.
  • observed — Modified behavior in extension/privilege_zone_rules/t0-app-installations-all-repos.json: Adds the rule key GH_t0_app_installations_all_repos.
  • observed — Modified behavior in extension/privilege_zone_rules/t0-apps-all-repos.json: Adds the rule key GH_t0_apps_all_repos.
  • observed — Modified behavior in extension/privilege_zone_rules/t0-enterprise-owners-role.json: The rule key was added as GH_t0_enterprise_owners_role.
Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the main change: adding stable IDs to saved searches and Tier Zero rules, which matches the raw summary (query_key added to saved search JSON files and key added to Tier Zero rule JSON…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: adding stable IDs to saved searches and Tier Zero rules, which matches the raw summary (query_key added to saved search JSON files and key added to Tier Zero rule JSON files) and the PR objectives (address Generate BHE Bundle failures caused by missing query_key and key). It includes a ticket reference and a 'fix:' prefix, which are acceptable. The title is 67 characters, so it is concise and within a typical length. It is a single sentence and specific enough for a teammate scanning history.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

A rabbit checks each JSON line,
And finds a key in every sign.
Tier Zero rules gain names to show,
Saved searches get keys in tow.
The burrow hops through fields made clear.

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 0fd7acf9-6981-401f-a5e6-3ffa4c2dfdbc
Commits

Reviewing files that changed from the base of the PR and between 7a27fbe and d39736e.

Files selected for processing: 74

  • extension/privilege_zone_rules/t0-all-repo-admin-role.json
  • extension/privilege_zone_rules/t0-app-installations-all-repos.json
  • extension/privilege_zone_rules/t0-apps-all-repos.json
  • extension/privilege_zone_rules/t0-enterprise-owners-role.json
  • extension/privilege_zone_rules/t0-external-identities-owners.json
  • extension/privilege_zone_rules/t0-organizations.json
  • extension/privilege_zone_rules/t0-owner-users.json
  • extension/privilege_zone_rules/t0-owners-role.json
  • extension/privilege_zone_rules/t0-pats-all-repos.json
  • extension/privilege_zone_rules/t0-privilege-escalation-roles.json
  • extension/privilege_zone_rules/t0-privilege-escalation-users.json
  • extension/privilege_zone_rules/t0-saml-identity-providers.json
  • extension/saved_searches/actions-sha-pinning-not-required.json
  • extension/saved_searches/active-leaked-secrets.json
  • extension/saved_searches/advanced-security-disabled-new-repos.json
  • extension/saved_searches/all-actions-allowed.json
  • extension/saved_searches/app-installations-all-repos.json
  • extension/saved_searches/branch-protection-admins-not-enforced.json
  • extension/saved_searches/branch-protection-deletions-allowed.json
  • extension/saved_searches/branch-protection-force-pushes.json
  • extension/saved_searches/branch-protection-no-code-owner-reviews.json
  • extension/saved_searches/branch-protection-no-pr-reviews.json
  • extension/saved_searches/branch-protection-no-status-checks.json
  • extension/saved_searches/branch-protection-self-approval.json
  • extension/saved_searches/branch-protection-stale-reviews.json
  • extension/saved_searches/bypass-pr-requirements.json
  • extension/saved_searches/dangerous-branch-perms.json
  • extension/saved_searches/default-repository-permissions.json
  • extension/saved_searches/demo-sso-to-cloud-round-trip.json
  • extension/saved_searches/dependabot-alerts-disabled-new-repos.json
  • extension/saved_searches/dependabot-updates-disabled-new-repos.json
  • extension/saved_searches/dependency-graph-disabled-new-repos.json
  • extension/saved_searches/environments-admin-bypass.json
  • extension/saved_searches/expired-pats.json
  • extension/saved_searches/external-identities-without-scim.json
  • extension/saved_searches/github-to-azure-identity.json
  • extension/saved_searches/global-repo-perms.json
  • extension/saved_searches/hybrid-identities.json
  • extension/saved_searches/members-can-change-repo-visibility.json
  • extension/saved_searches/members-can-create-pages.json
  • extension/saved_searches/members-can-create-public-repos.json
  • extension/saved_searches/members-can-delete-repos.json
  • extension/saved_searches/members-can-fork-private-repos.json
  • extension/saved_searches/members-can-invite-outside-collaborators.json
  • extension/saved_searches/org-owners.json
  • extension/saved_searches/orgs-without-2fa.json
  • extension/saved_searches/pats-all-repo-access.json
  • extension/saved_searches/pending-pat-requests.json
  • extension/saved_searches/private-repos-forking-allowed.json
  • extension/saved_searches/privileged-custom-org-roles.json
  • extension/saved_searches/privileged-hybrid-identities.json
  • extension/saved_searches/public-repos.json
  • extension/saved_searches/push-protection-disabled-new-repos.json
  • extension/saved_searches/push-to-protected-branches.json
  • extension/saved_searches/repos-secret-scanning-disabled.json
  • extension/saved_searches/repos-vulnerable-to-workflow-secret-exfil.json
  • extension/saved_searches/repository-workflows.json
  • extension/saved_searches/saml-configuration.json
  • extension/saved_searches/secret-scanning-alerts.json
  • extension/saved_searches/secret-scanning-disabled-new-repos.json
  • extension/saved_searches/secrets-reachable-by-user.json
  • extension/saved_searches/self-hosted-runners-can-intercept-broad-token-jobs.json
  • extension/saved_searches/shared-self-hosted-runners-can-intercept-secret-bearing-jobs.json
  • extension/saved_searches/team-membership-admin.json
  • extension/saved_searches/team-structure.json
  • extension/saved_searches/unprotected-branches.json
  • extension/saved_searches/unprotected-default-branch-with-workflow.json
  • extension/saved_searches/unprotected-default-branches.json
  • extension/saved_searches/web-commit-signoff-not-required.json
  • extension/saved_searches/workflow-jobs-interceptable-by-self-hosted-runners.json
  • extension/saved_searches/workflow-jobs-with-broad-token-write-permissions.json
  • extension/saved_searches/workflow-jobs-with-id-token-write-on-self-hosted-runners.json
  • extension/saved_searches/workflow-jobs-with-id-token-write.json
  • extension/saved_searches/workflow-jobs-with-observed-oidc-auth-steps.json

Included review availability: This review used your included allowance. 9 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 10 reviews per hour.

@jaredcatkinson
jaredcatkinson merged commit 6fac3b8 into main Nov 20, 2026
3 checks passed
@jaredcatkinson
jaredcatkinson deleted the fix/BED-10671-stable-extension-ids branch November 20, 2026 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants